//
//  HHPBaseViewController.m
//  HHPLiveVideo
//
//  Created by 韩红坡 on 2017/3/29.
//  Copyright © 2017年 韩红坡. All rights reserved.
//

#import "HHPBaseViewController.h"

@interface HHPBaseViewController ()

@end

@implementation HHPBaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = ViewBgColor;
    
    HHPLog(@"hhp:%s, %d, %@, %@", __func__, __LINE__, self.class, self);
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.delegate = nil;
    }
    self.navigationController.interactivePopGestureRecognizer.enabled = YES;
    
//    [self.navigationController setNavigationBarHidden:NO animated:YES];
    
}

- (void)dealloc
{
    HHPLog(@"hhp:%s, %d, %@, %@", __func__, __LINE__, self.class, self);
    
    [NSObject cancelPreviousPerformRequestsWithTarget:self];
    [[ NSNotificationCenter defaultCenter] removeObserver:self ];
}

@end
